<?php
namespace Common\Model;
use Common\Model\BaseModel;
/**
 * 权限规则model
 */
class AbnormalModel extends BaseModel{
	//初始页面数据
	public function getdata($map,$order=""){
		$list=$this
				->fileds('id,sn,s.realname as signer,sign,reply,plan,r.realname as replyer')
                ->join(user as r on r.id=abnormal.replyer )
                ->join(user as s on s.id=abnormal.signer )
                ->where($map)
                ->order($order)
                ->select(); 

	}
}
?>